import nock from "nock";

nock("https://matej10qa.appwrite.org:443", { encodedQueryParams: true })
    .post("/v1/account/sessions/anonymous", {})
    .reply(
        201,
        [
            "1f8b0800000000000003758fcb4ec33010457f0545dd4123c749f3da15542416748102fbd49e50aba91d8ded8a08f1ef384dc84315b225dbf7ce9cb9fef656827bb91787344a5256f128ab2075eb1096de83b76208a501be35ae86124ad7245b0771118439753bf1d364734f484e882bb61af065010b1961318d1d2b743e7c3502a10785b72032821a5417c1015d6929956ccfcaea99fc7e4d3c13b68c81d6853a81fcd7d875c3dba5fd0615823ece1a45e3ce6093f94114fb51e0d32e8ed24f8a435fa0f4be3c8ff70f402dd4d0cb6a01d2146dd3d9b53860e9e6fdc913a17f0f94bd93ef9ec1b0e3e84cccc027a3ba939f422e08bdb248c0e122184c01fbf7239692cf855737b41e50ca4a83ed90cee0240d94c2e209aedfb0886eaa971bb4f0f30b5ce487c537020000",
        ],
        [
            "Access-Control-Allow-Credentials",
            "true",
            "Access-Control-Allow-Headers",
            "Origin, Cookie, Set-Cookie, X-Requested-With, Content-Type, Access-Control-Allow-Origin, Access-Control-Request-Headers, Accept, X-Appwrite-Project, X-Appwrite-Key, X-Appwrite-Locale, X-Appwrite-Mode, X-Appwrite-JWT, X-Appwrite-Response-Format, X-SDK-Version, X-SDK-Name, X-SDK-Language, X-SDK-Platform, X-Appwrite-ID, Content-Range, Range, Cache-Control, Expires, Pragma",
            "Access-Control-Allow-Methods",
            "GET, POST, PUT, PATCH, DELETE",
            "Access-Control-Allow-Origin",
            "https://localhost",
            "Access-Control-Expose-Headers",
            "X-Fallback-Cookies",
            "Content-Encoding",
            "gzip",
            "Content-Length",
            "299",
            "Content-Type",
            "application/json; charset=UTF-8",
            "Date",
            "Fri, 16 Sep 2022 13:23:27 GMT",
            "Server",
            "Appwrite",
            "Set-Cookie",
            "a_session_6324555073b9706cb1f5_legacy=eyJpZCI6IjYzMjQ3OGNmZDNjMGM2MjZiM2EzIiwic2VjcmV0IjoiOGYwNGY0OGQwYzljMjQ0ZDA4ZjM0YjY4YjIxNGVkN2UwZTAyMjkxMzkxN2QzMWUwOWRiZjMzNDBkN2JhYWMwODhlY2JkZWE1NzBhNDBlODdkNDBlZjc3ODRhZTYyM2EzYjM5MzE2YzllZWFjYWVmZjBmZTRiNGEzNDViNzJmNDYwZTM4ZGEzMTdlZDhiZjAwZTRiNGQ1Yjg4MWJjZmM2YWQyMjlkYjE5MDVjODI4ZjA2N2FmOTIyZmJjNjE1ZWY5NTYyMGVkNGI1YzMxYWEyOWNiYTVlNDZjYjliOGFlNDdkNDY1YTA3YjQ0N2I2ZGY0NmU5NGZmNDk2ZTM0ZTI4OSJ9; expires=Sat, 16-Sep-2023 13:23:27 GMT; path=/; domain=.matej10qa.appwrite.org; secure; httponly",
            "Set-Cookie",
            "a_session_6324555073b9706cb1f5=eyJpZCI6IjYzMjQ3OGNmZDNjMGM2MjZiM2EzIiwic2VjcmV0IjoiOGYwNGY0OGQwYzljMjQ0ZDA4ZjM0YjY4YjIxNGVkN2UwZTAyMjkxMzkxN2QzMWUwOWRiZjMzNDBkN2JhYWMwODhlY2JkZWE1NzBhNDBlODdkNDBlZjc3ODRhZTYyM2EzYjM5MzE2YzllZWFjYWVmZjBmZTRiNGEzNDViNzJmNDYwZTM4ZGEzMTdlZDhiZjAwZTRiNGQ1Yjg4MWJjZmM2YWQyMjlkYjE5MDVjODI4ZjA2N2FmOTIyZmJjNjE1ZWY5NTYyMGVkNGI1YzMxYWEyOWNiYTVlNDZjYjliOGFlNDdkNDY1YTA3YjQ0N2I2ZGY0NmU5NGZmNDk2ZTM0ZTI4OSJ9; expires=Sat, 16-Sep-2023 13:23:27 GMT; path=/; domain=.matej10qa.appwrite.org; secure; httponly; samesite=None",
            "X-Content-Type-Options",
            "nosniff",
            "X-Debug-Fallback",
            "true",
            "X-Debug-Speed",
            "0.017942905426025",
            "X-Fallback-Cookies",
            '{"a_session_6324555073b9706cb1f5":"eyJpZCI6IjYzMjQ3OGNmZDNjMGM2MjZiM2EzIiwic2VjcmV0IjoiOGYwNGY0OGQwYzljMjQ0ZDA4ZjM0YjY4YjIxNGVkN2UwZTAyMjkxMzkxN2QzMWUwOWRiZjMzNDBkN2JhYWMwODhlY2JkZWE1NzBhNDBlODdkNDBlZjc3ODRhZTYyM2EzYjM5MzE2YzllZWFjYWVmZjBmZTRiNGEzNDViNzJmNDYwZTM4ZGEzMTdlZDhiZjAwZTRiNGQ1Yjg4MWJjZmM2YWQyMjlkYjE5MDVjODI4ZjA2N2FmOTIyZmJjNjE1ZWY5NTYyMGVkNGI1YzMxYWEyOWNiYTVlNDZjYjliOGFlNDdkNDY1YTA3YjQ0N2I2ZGY0NmU5NGZmNDk2ZTM0ZTI4OSJ9"}',
            "X-Ratelimit-Limit",
            "50",
            "X-Ratelimit-Remaining",
            "41",
            "X-Ratelimit-Reset",
            "1663336800",
            "Connection",
            "close",
        ],
    );

nock("https://matej10qa.appwrite.org:443", { encodedQueryParams: true })
    .delete(
        "/v1/databases/632455a0b8d017403ce9/collections/632455a55dc72e1aa016/documents/63245b2f163591192f81",
        {},
    )
    .reply(204, "", [
        "Access-Control-Allow-Credentials",
        "true",
        "Access-Control-Allow-Headers",
        "Origin, Cookie, Set-Cookie, X-Requested-With, Content-Type, Access-Control-Allow-Origin, Access-Control-Request-Headers, Accept, X-Appwrite-Project, X-Appwrite-Key, X-Appwrite-Locale, X-Appwrite-Mode, X-Appwrite-JWT, X-Appwrite-Response-Format, X-SDK-Version, X-SDK-Name, X-SDK-Language, X-SDK-Platform, X-Appwrite-ID, Content-Range, Range, Cache-Control, Expires, Pragma",
        "Access-Control-Allow-Methods",
        "GET, POST, PUT, PATCH, DELETE",
        "Access-Control-Allow-Origin",
        "https://localhost",
        "Access-Control-Expose-Headers",
        "X-Fallback-Cookies",
        "Content-Type",
        "text/html",
        "Date",
        "Fri, 16 Sep 2022 13:23:28 GMT",
        "Server",
        "Appwrite",
        "X-Content-Type-Options",
        "nosniff",
        "X-Debug-Fallback",
        "true",
        "X-Debug-Speed",
        "0.012737035751343",
        "X-Ratelimit-Limit",
        "60",
        "X-Ratelimit-Remaining",
        "59",
        "X-Ratelimit-Reset",
        "1663334640",
        "Connection",
        "close",
    ]);

nock("https://matej10qa.appwrite.org:443", { encodedQueryParams: true })
    .delete(
        "/v1/databases/632455a0b8d017403ce9/collections/632455a55dc72e1aa016/documents/63245b3987e0f40c7988",
        {},
    )
    .reply(204, "", [
        "Access-Control-Allow-Credentials",
        "true",
        "Access-Control-Allow-Headers",
        "Origin, Cookie, Set-Cookie, X-Requested-With, Content-Type, Access-Control-Allow-Origin, Access-Control-Request-Headers, Accept, X-Appwrite-Project, X-Appwrite-Key, X-Appwrite-Locale, X-Appwrite-Mode, X-Appwrite-JWT, X-Appwrite-Response-Format, X-SDK-Version, X-SDK-Name, X-SDK-Language, X-SDK-Platform, X-Appwrite-ID, Content-Range, Range, Cache-Control, Expires, Pragma",
        "Access-Control-Allow-Methods",
        "GET, POST, PUT, PATCH, DELETE",
        "Access-Control-Allow-Origin",
        "https://localhost",
        "Access-Control-Expose-Headers",
        "X-Fallback-Cookies",
        "Content-Type",
        "text/html",
        "Date",
        "Fri, 16 Sep 2022 13:23:28 GMT",
        "Server",
        "Appwrite",
        "X-Content-Type-Options",
        "nosniff",
        "X-Debug-Fallback",
        "true",
        "X-Debug-Speed",
        "0.013412952423096",
        "X-Ratelimit-Limit",
        "60",
        "X-Ratelimit-Remaining",
        "58",
        "X-Ratelimit-Reset",
        "1663334640",
        "Connection",
        "close",
    ]);
